<?
require_once ('../../models/Shipping_Info.php');
$user = Shipping_Info::GetAll();
?>


<!DOCTYPE html>
<html lang="en">
	<? include('../../inc/head.php'); ?>
	<body>
		<div>
			<? include('../../inc/nav.php'); ?>

			<div id="content">
				<h3>Shipping_Info Table</h3>
				<table class="table table-bordered table-condensed table-hover table-striped">
		
					<tr>
						<th>Id</th><th>Shipping_Cost</th><th>Shipping_Region</th><th>Order_Key</th>
					</tr>
		
					<? while($row = $user->fetch_assoc()): ?>
						<tr>
							<td><?=$row['idShipping_Info']?></td><td><?=$row['Shipping_Cost']?></td><td><?=$row['Shipping_Region']?></td><td><?=$row['Order_Key']?></td>
							<td>
								<a href="details.php?id=<?=$row['idShipping_Info']?>">Details</a>
								<a href="edit.php?id=<?=$row['idShipping_Info']?>">Edit</a>
								<a href="delete.php?id=<?=$row['idShipping_Info']?>">Delete</a>
							</td>					
						</tr>
					<? endwhile; ?>
					<tr><td><a href="create.php">Insert New Values</a></td></tr>
				</table>
				
			</div>
			<? include('../../inc/footer.php'); ?>
		</div>
	</body>
</html>